import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sysUser/login ',
    method: 'post',
    data
  })
}

export function getInfo(token, id) {
  return request({
    url: '/member/get_member',
    method: 'get',
    params: { key: token, id }
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
